.class public Lcom/tecace/tetheringprovision/TetheringProvisionUtils;
.super Ljava/lang/Object;
.source "TetheringProvisionUtils.java"


# static fields
.field public static final ACTIVE_NETWORK_ISCONNECTED:Ljava/lang/String; = "activenetworkisconnected"

.field public static final ACTIVE_NETWORK_TYPE:Ljava/lang/String; = "activenetworktype"

.field public static final BLUETOOTH_TETHERED:Ljava/lang/String; = "bluetoothtethered"

.field public static final BT_TETHERED_NAME:Ljava/lang/String; = "bttetheredinterfacename"

.field public static final BT_TETHER_VERIFIED:Ljava/lang/String; = "bttetherverified"

.field public static final BT_TETHER_VERIFYING:Ljava/lang/String; = "bttetherverifying"

.field public static final BT_THRU_WIFI_TETHERED:Ljava/lang/String; = "btthruwifihtethered"

.field private static final MAXVERIFICATIONHOURTIME:J = 0x5265c00L

.field public static final MOBILEAP_TETHERED:Ljava/lang/String; = "mobileaptethered"

.field public static final MOBILEAP_TETHERED_NAME:Ljava/lang/String; = "mobileaptetheredinterfacename"

.field public static final MOBILEAP_THRU_BT_TETHERED:Ljava/lang/String; = "mobileapthrubttethered"

.field public static final PREFERENCENAME:Ljava/lang/String; = "TetheringProvisionPreferences"

.field public static final START_CAUSE:Ljava/lang/String; = "startcause"

.field public static final START_CAUSE_24HR_REVERIFY:I = 0x2

.field public static final START_CAUSE_BT_TETHERING:I = 0x3

.field public static final START_CAUSE_TETHER_SETTING:I = 0x0

.field public static final START_CAUSE_THRUBT_TETHER:I = 0x4

.field public static final START_CAUSE_WIFI_TETHER:I = 0x1

.field static final TAG:Ljava/lang/String; = "TetheringProvision"

.field public static final TETHER_BT_PAN_TYPE:I = 0x2

.field public static final TETHER_CHOICE:Ljava/lang/String; = "tetherchoicetype"

.field public static final TETHER_MOBILE_AP_TYPE:I = 0x0

.field public static final TETHER_NONE_TYPE:I = -0x1

.field public static final TETHER_TYPE:Ljava/lang/String; = "type"

.field public static final TETHER_USB_TYPE:I = 0x1

.field public static final USB_TETHERED:Ljava/lang/String; = "usbtethered"

.field public static final USB_TETHERED_NAME:Ljava/lang/String; = "usbtetheredinterfacename"

.field public static final USB_THRU_BT_TETHERED:Ljava/lang/String; = "usbthrubttethered"

.field public static final USB_THRU_WIFI_TETHERED:Ljava/lang/String; = "usbthruwifitethered"

.field public static final WIFI_SAVED_STATE:Ljava/lang/String; = "wifisavedstate"

.field public static final WIFI_TETHER_VERIFYING:Ljava/lang/String; = "wifitetherverifying"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 17
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static checkBTPANTether(Landroid/content/Context;I)V
    .locals 2
    .parameter "context"
    .parameter "state_connection"

    .prologue
    const/4 v1, 0x1

    .line 281
    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    .line 282
    const-string v0, "activenetworktype"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v0

    if-ne v0, v1, :cond_1

    const-string v0, "activenetworkisconnected"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 283
    const-string v0, "btthruwifihtethered"

    invoke-static {p0, v0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 289
    :cond_0
    :goto_0
    return-void

    .line 285
    :cond_1
    const-string v0, "bttetheredinterfacename"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUntether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 286
    const/4 v0, 0x3

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->startAuthenticationActivity(Landroid/content/Context;I)V

    goto :goto_0
.end method

.method public static enableWifi(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 399
    const-string v1, "wifi"

    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/wifi/WifiManager;

    .line 400
    .local v0, mWifiManager:Landroid/net/wifi/WifiManager;
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/net/wifi/WifiManager;->setWifiEnabled(Z)Z

    .line 401
    return-void
.end method

.method public static getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 5
    .parameter "context"
    .parameter "strKey"

    .prologue
    const/4 v3, 0x0

    .line 101
    const-string v2, "TetheringProvisionPreferences"

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 102
    .local v1, mSharedPreferences:Landroid/content/SharedPreferences;
    invoke-interface {v1, p1, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    .line 103
    .local v0, bValue:Z
    const-string v2, "TetheringProvision"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "getBooleanFromSharedPreference - "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {v0}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 104
    return v0
.end method

.method public static getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I
    .locals 5
    .parameter "context"
    .parameter "strKey"

    .prologue
    .line 108
    const-string v2, "TetheringProvisionPreferences"

    const/4 v3, 0x0

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 109
    .local v0, mSharedPreferences:Landroid/content/SharedPreferences;
    const/4 v2, -0x1

    invoke-interface {v0, p1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    .line 110
    .local v1, nValue:I
    const-string v2, "TetheringProvision"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "getIntFromSharedPreference - "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 111
    return v1
.end method

.method public static getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .parameter "context"
    .parameter "strKey"

    .prologue
    .line 115
    const-string v2, "TetheringProvisionPreferences"

    const/4 v3, 0x0

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 116
    .local v0, mSharedPreferences:Landroid/content/SharedPreferences;
    const-string v2, ""

    invoke-interface {v0, p1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 118
    .local v1, strValue:Ljava/lang/String;
    return-object v1
.end method

.method private static getTetherableBluetoothRegexs(Landroid/content/Context;)[Ljava/lang/String;
    .locals 6
    .parameter "context"

    .prologue
    .line 314
    const-string v3, "connectivity"

    invoke-virtual {p0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 316
    .local v1, mConnectivityManager:Landroid/net/ConnectivityManager;
    :try_start_0
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    const-string v4, "getTetherableBluetoothRegexs"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 317
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 320
    .end local v2           #method:Ljava/lang/reflect/Method;
    :goto_0
    return-object v3

    .line 318
    :catch_0
    move-exception v0

    .line 319
    .local v0, e:Ljava/lang/Exception;
    const-string v3, "TetheringProvision"

    const-string v4, ""

    invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 320
    const/4 v3, 0x0

    goto :goto_0
.end method

.method private static getUSBTetherableRegexs(Landroid/content/Context;)[Ljava/lang/String;
    .locals 6
    .parameter "context"

    .prologue
    .line 303
    const-string v3, "connectivity"

    invoke-virtual {p0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 305
    .local v1, mConnectivityManager:Landroid/net/ConnectivityManager;
    :try_start_0
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    const-string v4, "getTetherableUsbRegexs"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 306
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 309
    .end local v2           #method:Ljava/lang/reflect/Method;
    :goto_0
    return-object v3

    .line 307
    :catch_0
    move-exception v0

    .line 308
    .local v0, e:Ljava/lang/Exception;
    const-string v3, "TetheringProvision"

    const-string v4, ""

    invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 309
    const/4 v3, 0x0

    goto :goto_0
.end method

.method public static getWifiApConfiguration(Landroid/content/Context;)Landroid/net/wifi/WifiConfiguration;
    .locals 6
    .parameter "context"

    .prologue
    .line 374
    const-string v3, "wifi"

    invoke-virtual {p0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/wifi/WifiManager;

    .line 376
    .local v1, mWifiManager:Landroid/net/wifi/WifiManager;
    :try_start_0
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    const-string v4, "getWifiApConfiguration"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 377
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/net/wifi/WifiConfiguration;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 380
    .end local v2           #method:Ljava/lang/reflect/Method;
    :goto_0
    return-object v3

    .line 378
    :catch_0
    move-exception v0

    .line 379
    .local v0, e:Ljava/lang/Exception;
    const-string v3, "TetheringProvision"

    const-string v4, ""

    invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 380
    const/4 v3, 0x0

    goto :goto_0
.end method

.method private static getWifiTetherableRegexs(Landroid/content/Context;)[Ljava/lang/String;
    .locals 6
    .parameter "context"

    .prologue
    .line 292
    const-string v3, "connectivity"

    invoke-virtual {p0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 294
    .local v1, mConnectivityManager:Landroid/net/ConnectivityManager;
    :try_start_0
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    const-string v4, "getTetherableWifiRegexs"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 295
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 298
    .end local v2           #method:Ljava/lang/reflect/Method;
    :goto_0
    return-object v3

    .line 296
    :catch_0
    move-exception v0

    .line 297
    .local v0, e:Ljava/lang/Exception;
    const-string v3, "TetheringProvision"

    const-string v4, ""

    invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 298
    const/4 v3, 0x0

    goto :goto_0
.end method

.method public static initActiveNetworkInfo(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 150
    const-string v0, "activenetworktype"

    const/4 v1, -0x1

    invoke-static {p0, v0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    .line 151
    const-string v0, "activenetworkisconnected"

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 152
    return-void
.end method

.method public static initSharedPreference(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    const/4 v2, 0x0

    .line 56
    const-string v0, "TetheringProvision"

    const-string v1, "initSharedPreference"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 57
    const-string v0, "usbtethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 58
    const-string v0, "mobileaptethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 59
    const-string v0, "bluetoothtethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 60
    const-string v0, "usbthruwifitethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 61
    const-string v0, "btthruwifihtethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 62
    const-string v0, "usbthrubttethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 63
    const-string v0, "mobileapthrubttethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 64
    const-string v0, "wifisavedstate"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 65
    const-string v0, "usbtetheredinterfacename"

    const-string v1, "none"

    invoke-static {p0, v0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 66
    const-string v0, "mobileaptetheredinterfacename"

    const-string v1, "none"

    invoke-static {p0, v0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 67
    const-string v0, "bttetheredinterfacename"

    const-string v1, "none"

    invoke-static {p0, v0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 68
    const-string v0, "activenetworktype"

    const/4 v1, -0x1

    invoke-static {p0, v0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    .line 69
    const-string v0, "activenetworkisconnected"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 70
    const-string v0, "bttetherverified"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 71
    const-string v0, "wifitetherverifying"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 72
    const-string v0, "bttetherverifying"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 73
    const-string v0, "tetherchoicetype"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    .line 74
    return-void
.end method

.method public static putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V
    .locals 5
    .parameter "context"
    .parameter "strKey"
    .parameter "nValue"

    .prologue
    .line 85
    const-string v2, "TetheringProvisionPreferences"

    const/4 v3, 0x0

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 86
    .local v1, mSharedPreferences:Landroid/content/SharedPreferences;
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 87
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 88
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 89
    const-string v2, "TetheringProvision"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "putSharedPreference - "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 90
    return-void
.end method

.method public static putSharedPreference(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 5
    .parameter "context"
    .parameter "strKey"
    .parameter "strValue"

    .prologue
    .line 93
    const-string v2, "TetheringProvisionPreferences"

    const/4 v3, 0x0

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 94
    .local v1, mSharedPreferences:Landroid/content/SharedPreferences;
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 95
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 96
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 97
    const-string v2, "TetheringProvision"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "putSharedPreference - "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 98
    return-void
.end method

.method public static putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V
    .locals 5
    .parameter "context"
    .parameter "strKey"
    .parameter "bValue"

    .prologue
    .line 77
    const-string v2, "TetheringProvisionPreferences"

    const/4 v3, 0x0

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 78
    .local v1, mSharedPreferences:Landroid/content/SharedPreferences;
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 79
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 80
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 81
    const-string v2, "TetheringProvision"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "putSharedPreference - "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {p2}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 82
    return-void
.end method

.method public static removeEntitlementAlarm(Landroid/content/Context;)V
    .locals 5
    .parameter "context"

    .prologue
    .line 130
    const-string v3, "TetheringProvision"

    const-string v4, "remove alarm for 24hr entitlement"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 131
    new-instance v1, Landroid/content/Intent;

    const-class v3, Lcom/tecace/tetheringprovision/TetheringProvisionReceiver;

    invoke-direct {v1, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 132
    .local v1, mEntitlementAlarmIntent:Landroid/content/Intent;
    const/4 v3, 0x0

    const/high16 v4, 0x1000

    invoke-static {p0, v3, v1, v4}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    .line 133
    .local v2, mEntitlementPendingIntent:Landroid/app/PendingIntent;
    const-string v3, "alarm"

    invoke-virtual {p0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    .line 134
    .local v0, mAlarmManager:Landroid/app/AlarmManager;
    invoke-virtual {v0, v2}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V

    .line 135
    return-void
.end method

.method public static setEntitlementAlarm(Landroid/content/Context;)V
    .locals 8
    .parameter "context"

    .prologue
    const/4 v7, 0x0

    .line 122
    const-string v3, "TetheringProvision"

    const-string v4, "Set alarm for 24hr entitlement"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 123
    new-instance v1, Landroid/content/Intent;

    const-class v3, Lcom/tecace/tetheringprovision/TetheringProvisionReceiver;

    invoke-direct {v1, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 124
    .local v1, mEntitlementAlarmIntent:Landroid/content/Intent;
    const/high16 v3, 0x1000

    invoke-static {p0, v7, v1, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    .line 125
    .local v2, mEntitlementPendingIntent:Landroid/app/PendingIntent;
    const-string v3, "alarm"

    invoke-virtual {p0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    .line 126
    .local v0, mAlarmManager:Landroid/app/AlarmManager;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    const-wide/32 v5, 0x5265c00

    add-long/2addr v3, v5

    invoke-virtual {v0, v7, v3, v4, v2}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V

    .line 127
    return-void
.end method

.method public static setTether(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 9
    .parameter "context"
    .parameter "Interface"

    .prologue
    const/4 v5, 0x1

    const/4 v6, 0x0

    .line 325
    const-string v7, "connectivity"

    invoke-virtual {p0, v7}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 327
    .local v1, mConnectivityManager:Landroid/net/ConnectivityManager;
    const/4 v7, 0x1

    :try_start_0
    new-array v4, v7, [Ljava/lang/Class;

    const/4 v7, 0x0

    const-class v8, Ljava/lang/String;

    aput-object v8, v4, v7

    .line 328
    .local v4, parametertypes:[Ljava/lang/Class;
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v7

    const-string v8, "tether"

    invoke-virtual {v7, v8, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 329
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v7, 0x1

    new-array v3, v7, [Ljava/lang/Object;

    const/4 v7, 0x0

    aput-object p1, v3, v7

    .line 330
    .local v3, param:[Ljava/lang/Object;
    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 335
    const-string v6, "TetheringProvision"

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, " tethering is enabled forcefully"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 336
    .end local v2           #method:Ljava/lang/reflect/Method;
    .end local v3           #param:[Ljava/lang/Object;
    .end local v4           #parametertypes:[Ljava/lang/Class;
    :goto_0
    return v5

    .line 331
    :catch_0
    move-exception v0

    .line 332
    .local v0, e:Ljava/lang/Exception;
    const-string v5, "TetheringProvision"

    const-string v7, ""

    invoke-static {v5, v7, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    move v5, v6

    .line 333
    goto :goto_0
.end method

.method public static setUntether(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 9
    .parameter "context"
    .parameter "Interface"

    .prologue
    const/4 v5, 0x1

    const/4 v6, 0x0

    .line 340
    const-string v7, "connectivity"

    invoke-virtual {p0, v7}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 342
    .local v1, mConnectivityManager:Landroid/net/ConnectivityManager;
    const/4 v7, 0x1

    :try_start_0
    new-array v4, v7, [Ljava/lang/Class;

    const/4 v7, 0x0

    const-class v8, Ljava/lang/String;

    aput-object v8, v4, v7

    .line 343
    .local v4, parametertypes:[Ljava/lang/Class;
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v7

    const-string v8, "untether"

    invoke-virtual {v7, v8, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 344
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v7, 0x1

    new-array v3, v7, [Ljava/lang/Object;

    const/4 v7, 0x0

    aput-object p1, v3, v7

    .line 345
    .local v3, param:[Ljava/lang/Object;
    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 350
    const-string v6, "TetheringProvision"

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, " tethering is disabled forcefully"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 351
    .end local v2           #method:Ljava/lang/reflect/Method;
    .end local v3           #param:[Ljava/lang/Object;
    .end local v4           #parametertypes:[Ljava/lang/Class;
    :goto_0
    return v5

    .line 346
    :catch_0
    move-exception v0

    .line 347
    .local v0, e:Ljava/lang/Exception;
    const-string v5, "TetheringProvision"

    const-string v7, ""

    invoke-static {v5, v7, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    move v5, v6

    .line 348
    goto :goto_0
.end method

.method public static setUsbTethering(Landroid/content/Context;Z)Z
    .locals 9
    .parameter "context"
    .parameter "enable"

    .prologue
    const/4 v5, 0x1

    const/4 v6, 0x0

    .line 355
    const-string v7, "connectivity"

    invoke-virtual {p0, v7}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 357
    .local v1, mConnectivityManager:Landroid/net/ConnectivityManager;
    const/4 v7, 0x1

    :try_start_0
    new-array v4, v7, [Ljava/lang/Class;

    const/4 v7, 0x0

    sget-object v8, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    aput-object v8, v4, v7

    .line 358
    .local v4, parametertypes:[Ljava/lang/Class;
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v7

    const-string v8, "setUsbTethering"

    invoke-virtual {v7, v8, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 359
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v7, 0x1

    new-array v3, v7, [Ljava/lang/Object;

    const/4 v7, 0x0

    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v8

    aput-object v8, v3, v7

    .line 360
    .local v3, param:[Ljava/lang/Object;
    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 365
    if-eqz p1, :cond_0

    .line 366
    const-string v6, "TetheringProvision"

    const-string v7, "setUsbTethering is enabled forcefully"

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 370
    .end local v2           #method:Ljava/lang/reflect/Method;
    .end local v3           #param:[Ljava/lang/Object;
    .end local v4           #parametertypes:[Ljava/lang/Class;
    :goto_0
    return v5

    .line 361
    :catch_0
    move-exception v0

    .line 362
    .local v0, e:Ljava/lang/Exception;
    const-string v5, "TetheringProvision"

    const-string v7, ""

    invoke-static {v5, v7, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    move v5, v6

    .line 363
    goto :goto_0

    .line 368
    .end local v0           #e:Ljava/lang/Exception;
    .restart local v2       #method:Ljava/lang/reflect/Method;
    .restart local v3       #param:[Ljava/lang/Object;
    .restart local v4       #parametertypes:[Ljava/lang/Class;
    :cond_0
    const-string v6, "TetheringProvision"

    const-string v7, "setUsbTethering is disabled forcefully"

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public static setWifiApEnabled(Landroid/content/Context;Landroid/net/wifi/WifiConfiguration;Z)Z
    .locals 9
    .parameter "context"
    .parameter "wifiConfig"
    .parameter "enabled"

    .prologue
    const/4 v5, 0x1

    const/4 v6, 0x0

    .line 385
    const-string v7, "wifi"

    invoke-virtual {p0, v7}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/wifi/WifiManager;

    .line 387
    .local v1, mWifiManager:Landroid/net/wifi/WifiManager;
    const/4 v7, 0x2

    :try_start_0
    new-array v4, v7, [Ljava/lang/Class;

    const/4 v7, 0x0

    const-class v8, Landroid/net/wifi/WifiConfiguration;

    aput-object v8, v4, v7

    const/4 v7, 0x1

    sget-object v8, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    aput-object v8, v4, v7

    .line 388
    .local v4, parametertypes:[Ljava/lang/Class;
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v7

    const-string v8, "setWifiApEnabled"

    invoke-virtual {v7, v8, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 389
    .local v2, method:Ljava/lang/reflect/Method;
    const/4 v7, 0x2

    new-array v3, v7, [Ljava/lang/Object;

    const/4 v7, 0x0

    aput-object p1, v3, v7

    const/4 v7, 0x1

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v8

    aput-object v8, v3, v7

    .line 390
    .local v3, param:[Ljava/lang/Object;
    invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 394
    .end local v2           #method:Ljava/lang/reflect/Method;
    .end local v3           #param:[Ljava/lang/Object;
    .end local v4           #parametertypes:[Ljava/lang/Class;
    :goto_0
    return v5

    .line 392
    :catch_0
    move-exception v0

    .line 393
    .local v0, e:Ljava/lang/Exception;
    const-string v5, "TetheringProvision"

    const-string v7, ""

    invoke-static {v5, v7, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    move v5, v6

    .line 394
    goto :goto_0
.end method

.method public static start24hrAuthentication(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 146
    const/4 v0, 0x2

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->startAuthenticationActivity(Landroid/content/Context;I)V

    .line 147
    return-void
.end method

.method public static startAuthenticationActivity(Landroid/content/Context;I)V
    .locals 2
    .parameter "context"
    .parameter "startReason"

    .prologue
    .line 138
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 139
    .local v0, mReverifyIntent:Landroid/content/Intent;
    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 140
    const/high16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 141
    const-string v1, "startcause"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 142
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 143
    return-void
.end method

.method public static updateActiveNetworkInfo(Landroid/content/Context;)V
    .locals 8
    .parameter "context"

    .prologue
    const/4 v7, 0x4

    const/4 v6, 0x0

    const/4 v5, 0x1

    .line 155
    const-string v2, "connectivity"

    invoke-virtual {p0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    .line 156
    .local v0, mConnectivityManager:Landroid/net/ConnectivityManager;
    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    .line 157
    .local v1, networkInfo:Landroid/net/NetworkInfo;
    if-nez v1, :cond_1

    .line 158
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->initActiveNetworkInfo(Landroid/content/Context;)V

    .line 159
    const-string v2, "TetheringProvision"

    const-string v3, "not exist active network currently.."

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 192
    :cond_0
    :goto_0
    return-void

    .line 161
    :cond_1
    const-string v2, "TetheringProvision"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Active network info - Type : "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getTypeName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ", SubType : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getSubtypeName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ", isConnected : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 162
    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getType()I

    move-result v2

    const-string v3, "activenetworktype"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v3

    if-ne v2, v3, :cond_2

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v2

    const-string v3, "activenetworkisconnected"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eq v2, v3, :cond_0

    .line 163
    :cond_2
    const-string v2, "activenetworktype"

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getType()I

    move-result v3

    invoke-static {p0, v2, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    .line 164
    const-string v2, "activenetworkisconnected"

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v3

    invoke-static {p0, v2, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 166
    const-string v2, "usbthruwifitethered"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    const-string v2, "btthruwifihtethered"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 167
    :cond_3
    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getType()I

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 168
    const-string v2, "wifitetherverifying"

    invoke-static {p0, v2, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 169
    const-string v2, "usbthruwifitethered"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 170
    invoke-static {p0, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUsbTethering(Landroid/content/Context;Z)Z

    .line 171
    :cond_4
    const-string v2, "btthruwifihtethered"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 172
    const-string v2, "bttetheredinterfacename"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUntether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 174
    :cond_5
    invoke-static {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->startAuthenticationActivity(Landroid/content/Context;I)V

    goto/16 :goto_0

    .line 176
    :cond_6
    const-string v2, "usbthrubttethered"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 177
    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getType()I

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 178
    const-string v2, "bttetherverifying"

    invoke-static {p0, v2, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 179
    invoke-static {p0, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUsbTethering(Landroid/content/Context;Z)Z

    .line 180
    invoke-static {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->startAuthenticationActivity(Landroid/content/Context;I)V

    goto/16 :goto_0

    .line 182
    :cond_7
    const-string v2, "mobileapthrubttethered"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 183
    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getType()I

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 184
    const-string v2, "bttetherverifying"

    invoke-static {p0, v2, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 185
    const-string v2, "mobileaptetheredinterfacename"

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUntether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 186
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getWifiApConfiguration(Landroid/content/Context;)Landroid/net/wifi/WifiConfiguration;

    move-result-object v2

    invoke-static {p0, v2, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setWifiApEnabled(Landroid/content/Context;Landroid/net/wifi/WifiConfiguration;Z)Z

    .line 187
    invoke-static {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->startAuthenticationActivity(Landroid/content/Context;I)V

    goto/16 :goto_0
.end method

.method public static updateTetherInterfaceName(Landroid/content/Context;Ljava/lang/String;)V
    .locals 6
    .parameter "context"
    .parameter "strTetherInterfaceName"

    .prologue
    const/4 v1, 0x0

    .line 264
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getUSBTetherableRegexs(Landroid/content/Context;)[Ljava/lang/String;

    move-result-object v3

    array-length v4, v3

    move v2, v1

    :goto_0
    if-lt v2, v4, :cond_0

    .line 269
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getWifiTetherableRegexs(Landroid/content/Context;)[Ljava/lang/String;

    move-result-object v3

    array-length v4, v3

    move v2, v1

    :goto_1
    if-lt v2, v4, :cond_2

    .line 274
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getTetherableBluetoothRegexs(Landroid/content/Context;)[Ljava/lang/String;

    move-result-object v2

    array-length v3, v2

    :goto_2
    if-lt v1, v3, :cond_4

    .line 278
    return-void

    .line 264
    :cond_0
    aget-object v0, v3, v2

    .line 265
    .local v0, regex:Ljava/lang/String;
    invoke-virtual {p1, v0}, Ljava/lang/String;->matches(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 266
    const-string v5, "usbtetheredinterfacename"

    invoke-static {p0, v5, p1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 264
    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 269
    .end local v0           #regex:Ljava/lang/String;
    :cond_2
    aget-object v0, v3, v2

    .line 270
    .restart local v0       #regex:Ljava/lang/String;
    invoke-virtual {p1, v0}, Ljava/lang/String;->matches(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 271
    const-string v5, "mobileaptetheredinterfacename"

    invoke-static {p0, v5, p1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 269
    :cond_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 274
    .end local v0           #regex:Ljava/lang/String;
    :cond_4
    aget-object v0, v2, v1

    .line 275
    .restart local v0       #regex:Ljava/lang/String;
    invoke-virtual {p1, v0}, Ljava/lang/String;->matches(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 276
    const-string v4, "bttetheredinterfacename"

    invoke-static {p0, v4, p1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 274
    :cond_5
    add-int/lit8 v1, v1, 0x1

    goto :goto_2
.end method

.method public static updateTetherState(Landroid/content/Context;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)V
    .locals 9
    .parameter "context"
    .parameter "available"
    .parameter "tethered"
    .parameter "errored"

    .prologue
    const/4 v8, 0x7

    const/4 v7, 0x1

    const/4 v2, 0x0

    .line 196
    array-length v3, p1

    move v1, v2

    :goto_0
    if-lt v1, v3, :cond_3

    .line 201
    array-length v3, p3

    move v1, v2

    :goto_1
    if-lt v1, v3, :cond_4

    .line 205
    array-length v3, p2

    move v1, v2

    :goto_2
    if-lt v1, v3, :cond_5

    .line 236
    array-length v1, p2

    if-nez v1, :cond_2

    .line 237
    const-string v1, "TetheringProvision"

    const-string v3, "received the TETHER_STATE_CHANGED intent with no active tether interface"

    invoke-static {v1, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 238
    const-string v1, "usbtethered"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_c

    .line 239
    const-string v1, "usbtethered"

    invoke-static {p0, v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 240
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->removeEntitlementAlarm(Landroid/content/Context;)V

    .line 247
    :cond_0
    :goto_3
    const-string v1, "mobileaptethered"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_e

    .line 248
    const-string v1, "mobileaptethered"

    invoke-static {p0, v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 249
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->removeEntitlementAlarm(Landroid/content/Context;)V

    .line 254
    :cond_1
    :goto_4
    const-string v1, "bluetoothtethered"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_f

    .line 255
    const-string v1, "bluetoothtethered"

    invoke-static {p0, v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 256
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->removeEntitlementAlarm(Landroid/content/Context;)V

    .line 261
    :cond_2
    :goto_5
    return-void

    .line 196
    :cond_3
    aget-object v0, p1, v1

    .line 197
    .local v0, s:Ljava/lang/String;
    const-string v4, "TetheringProvision"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "available interface name : "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 196
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 201
    .end local v0           #s:Ljava/lang/String;
    :cond_4
    aget-object v0, p3, v1

    .line 202
    .restart local v0       #s:Ljava/lang/String;
    const-string v4, "TetheringProvision"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "errored interface name : "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 201
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 205
    .end local v0           #s:Ljava/lang/String;
    :cond_5
    aget-object v0, p2, v1

    .line 206
    .restart local v0       #s:Ljava/lang/String;
    const-string v4, "TetheringProvision"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "tethered interface name : "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 207
    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->updateTetherInterfaceName(Landroid/content/Context;Ljava/lang/String;)V

    .line 209
    const-string v4, "usbtetheredinterfacename"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 210
    const-string v4, "activenetworktype"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v4

    if-nez v4, :cond_9

    const-string v4, "usbtethered"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_9

    .line 211
    const-string v4, "usbtethered"

    invoke-static {p0, v4, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 212
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setEntitlementAlarm(Landroid/content/Context;)V

    .line 220
    :cond_6
    :goto_6
    const-string v4, "mobileaptetheredinterfacename"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_7

    .line 221
    const-string v4, "activenetworktype"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v4

    if-nez v4, :cond_b

    const-string v4, "mobileaptethered"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_b

    .line 222
    const-string v4, "mobileaptethered"

    invoke-static {p0, v4, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 223
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setEntitlementAlarm(Landroid/content/Context;)V

    .line 229
    :cond_7
    :goto_7
    const-string v4, "bttetheredinterfacename"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_8

    const-string v4, "bttetherverified"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_8

    .line 230
    const-string v4, "bttetherverified"

    invoke-static {p0, v4, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 231
    const-string v4, "bluetoothtethered"

    invoke-static {p0, v4, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 232
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setEntitlementAlarm(Landroid/content/Context;)V

    .line 205
    :cond_8
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_2

    .line 213
    :cond_9
    const-string v4, "activenetworktype"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v4

    if-ne v4, v8, :cond_a

    const-string v4, "usbthrubttethered"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_a

    .line 214
    const-string v4, "usbthrubttethered"

    invoke-static {p0, v4, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto :goto_6

    .line 215
    :cond_a
    const-string v4, "usbthruwifitethered"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_6

    .line 216
    const-string v4, "usbthruwifitethered"

    invoke-static {p0, v4, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto :goto_6

    .line 224
    :cond_b
    const-string v4, "activenetworktype"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v4

    if-ne v4, v8, :cond_7

    const-string v4, "mobileapthrubttethered"

    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_7

    .line 225
    const-string v4, "mobileapthrubttethered"

    invoke-static {p0, v4, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto :goto_7

    .line 241
    .end local v0           #s:Ljava/lang/String;
    :cond_c
    const-string v1, "usbthrubttethered"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_d

    const-string v1, "bttetherverifying"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_d

    .line 242
    const-string v1, "usbthrubttethered"

    invoke-static {p0, v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto/16 :goto_3

    .line 243
    :cond_d
    const-string v1, "usbthruwifitethered"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "wifitetherverifying"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 244
    const-string v1, "usbthruwifitethered"

    invoke-static {p0, v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto/16 :goto_3

    .line 250
    :cond_e
    const-string v1, "mobileapthrubttethered"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, "bttetherverifying"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 251
    const-string v1, "mobileapthrubttethered"

    invoke-static {p0, v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto/16 :goto_4

    .line 257
    :cond_f
    const-string v1, "btthruwifihtethered"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string v1, "wifitetherverifying"

    invoke-static {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 258
    const-string v1, "btthruwifihtethered"

    invoke-static {p0, v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto/16 :goto_5
.end method
